.dynamic-list-container {
  padding: 20px;
  margin-bottom: 100px;
}

.description {
  margin: 20px 0;
}

.status-summary {
  margin: 20px 0;
}

.status-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 16px rgba(255, 126, 51, 0.1);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 126, 51, 0.15);
  }
}

.status-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  margin-right: 15px;

  &.total {
    background: linear-gradient(135deg, #3498db, #2980b9);
  }

  &.operations {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
  }

  &.stock {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
  }

  &.time {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
  }
}

.status-info {
  h3 {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
  }

  p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
  }
}

.control-panel {
  margin: 20px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(255, 126, 51, 0.15);
  border: 1px solid var(--border-color);

  .el-form--inline .el-form-item {
    @media (max-width: 768px) {
      display: block;
      margin-bottom: 15px;
    }
  }
}

.book-list {
  margin-top: 20px;
}

.list-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.book-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;

  &:hover {
    background: rgba(255, 126, 51, 0.05);
    transform: translateX(5px);
  }

  &:last-child {
    border-bottom: none;
  }

  @media (max-width: 768px) {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
}

.book-cover {
  width: 50px;
  height: 60px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-right: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;

  @media (max-width: 768px) {
    margin-bottom: 10px;
  }
}

.book-info {
  flex: 1;
  min-width: 0;
}

.book-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 5px;

  @media (max-width: 768px) {
    flex-direction: column;
    gap: 5px;
  }
}

.author {
  color: #666;
  font-size: 0.9rem;
}

.category {
  color: var(--primary-color);
  font-size: 0.85rem;
  background: rgba(255, 126, 51, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.book-details {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: #999;
}

.stock-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 20px;
  min-width: 80px;

  @media (max-width: 768px) {
    margin: 15px 0;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
}

.stock-count {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}

.label {
  font-size: 0.8rem;
  color: #666;
}

.count {
  font-size: 1.2rem;
  font-weight: bold;
  min-width: 30px;
  text-align: center;

  &.stock-empty {
    color: #F56C6C;
  }

  &.stock-low {
    color: #E6A23C;
  }

  &.stock-normal {
    color: #67C23A;
  }
}

.operations {
  flex-shrink: 0;

  @media (max-width: 768px) {
    width: 100%;
    text-align: center;
  }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;

  .empty-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
  }

  h3 {
    margin: 0 0 10px 0;
    color: var(--text-color);
  }

  p {
    margin: 0 0 20px 0;
    color: #999;
  }
}

/* 列表过渡动画 */
.list-enter-active,
.list-leave-active {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.list-enter {
  opacity: 0;
  transform: translateX(-30px) scale(0.95);
}

.list-leave-to {
  opacity: 0;
  transform: translateX(30px) scale(0.95);
}

.list-move {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
  .status-summary .el-col {
    margin-bottom: 15px;
  }

  .status-card {
    padding: 15px;
  }

  .status-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .status-info h3 {
    font-size: 1.5rem;
  }
}

.dynamic-list {
  padding: 20px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);

  .left-section {
    display: flex;
    align-items: center;
    gap: 16px;

    h2 {
      margin: 0;
      color: #303133;
    }
  }

  .right-section {
    display: flex;
    gap: 16px;
  }
}